package com.leshua.channel.mpos.common.enums;


public enum ErrorEnum {
    REQUEST_SUCCESS("1","请求成功"),
    REQUEST_PARAM_INVALID("0010","参数错误或无效"),
    CHECK_SIGN_FAILED("0020","签名错误"),
    NONCESTR_REPEAT("0030","nonceStr重复"),
    ABNORMAL_MERCHANT("0040","商户存在异常"),
    ORDER_NOT_EXIST("0050","订单号不存在"),
    ORDER_FORBID_REFUND("0051","订单状态不允许退款"),
    ORDER_OUTSTANDING("0052", "订单还有欠款未缴清"),
    REFUND_AMOUNT_NOT_SUFFICIENT("0052","订单可退余额不足"),
    ORDER_AMOUNT_INVALID("0060","金额大小不正确"),
    PAY_TYPE_INVALID("0070","交易类型非法"),
    UP_CHANNEL_ERROR("0090","上游通道错误"),
    SYSTEM_ERROR("-1","系统错误"),
    TRANSACTION_LIMIT("0200","交易禁止"),
    UNSUPPORTED_POS_TYPE("0100","机具型号不支持交易"),
    CUSTOMER_LIMIT("0110","商户禁止交易"),
    POSCATI_LIMIT("0120","终端编号禁止交易"),
    AGENT_LIMIT("0130","代理商禁止交易"),
    BRANCH_LIMIT("0140","机构禁止交易"),
    ;


    ErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private String code ;
    private String message ;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
